package com.shell.arouter.ui.viewmodel

import android.app.Application
import androidx.lifecycle.AndroidViewModel
import com.durian.ui.adapter.multi.MultiTypeAdapter
import com.shell.arouter.demo.HomeAction
import com.shell.arouter.demo.HomeActionProvider
import com.shell.arouter.homeActionList

/**
 * 说明：MainViewModel
 * <p/>
 * 作者：fanly
 * <p/>
 * 类型：Class
 * <p/>
 * 时间：2019-12-19 16:41
 * <p/>
 * 版本：version 1.0
 */
class MainViewModel(application: Application) : AndroidViewModel(application) {
    val adapter by lazy {
        MultiTypeAdapter<HomeAction>(homeActionList)
                .register(HomeAction::class.java, HomeActionProvider())
    }
}